package com.czk.scala.chapter02

import scala.io.StdIn

/**
 * 测试控制台的输入
 *
 * @Author:ChenZhangKun
 * @Date: 2021/12/7 9:53
 */
object Test03_Stdln {
  def main(args: Array[String]): Unit = {
    println("请输入名字")
    val str = StdIn.readLine()
    println("请输入年龄")
    val age: Int = StdIn.readInt();
    println(s"年龄是${age},名字是${str}")
  }
}
